package com.dailyblue.project.estate.controller;

import com.dailyblue.project.estate.service.HeMinService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Flux;

/**
 * @Auther:Liu
 * @Testname:HeMinController
 * @Date:2025/10/1 16:06
 */
@RestController
@RequestMapping("/ollama_ai")
public class HeMinController {
    @Resource
    private HeMinService heMinService;

    @RequestMapping
    Flux<String> getMessage(@RequestParam("question") String question, @RequestParam("userId") String userId) {
        return heMinService.getMessage(question, userId);
    }
}
